# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=certbot
pkgver=1.6.0
pkgrel=0
pkgdesc="An ACME client that can update Apache/Nginx configurations"
url="https://github.com/certbot/certbot"
arch="noarch"
license="Apache-2.0"
depends="
	py3-acme
	py3-configargparse
	py3-configobj
	py3-cryptography
	py3-distro
	py3-distutils-extra
	py3-josepy
	py3-mock
	py3-parsedatetime
	py3-pyrfc3339
	py3-tz
	py3-setuptools
	py3-zope-component
	py3-zope-interface
"
checkdepends="py3-augeas"
replaces="letsencrypt"
source="https://pypi.io/packages/source/c/certbot/certbot-$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="1b41381dd098746d5dc94b38f9c8473279282f810c97b9491277b6e25be98019144d498080c0759797efa0cb38a9004582819f6b6fac26f8a95da17dfb780a4e  certbot-1.6.0.tar.gz"
